package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 解约协议对象 termination_agreements
 * 
 * @author ruoyi
 * @date 2025-02-13
 */
@Data
public class TerminationAgreements extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 解约协议ID */
    private Long id;

    /** 合同ID */
    @Excel(name = "合同ID")
    private Long contractId;

    /** 解约协议详细信息 */
    @Excel(name = "解约协议详细信息")
    private String agreementDetails;

    /** 电子签名 */
    @Excel(name = "电子签名")
    private String electronicSignature;

    /** 签署时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签署时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signatureTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setAgreementDetails(String agreementDetails) 
    {
        this.agreementDetails = agreementDetails;
    }

    public String getAgreementDetails() 
    {
        return agreementDetails;
    }
    public void setElectronicSignature(String electronicSignature) 
    {
        this.electronicSignature = electronicSignature;
    }

    public String getElectronicSignature() 
    {
        return electronicSignature;
    }
    public void setSignatureTime(Date signatureTime) 
    {
        this.signatureTime = signatureTime;
    }

    public Date getSignatureTime() 
    {
        return signatureTime;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractId", getContractId())
            .append("agreementDetails", getAgreementDetails())
            .append("electronicSignature", getElectronicSignature())
            .append("signatureTime", getSignatureTime())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
